If you use Web appbuilder, you will still have to use famous ESRI eyes to goggle layer visibility, show or hidden.
In the new experience builder, you do have choice to not use ESRI eyes, instead use check box is more intuitive way.
ESRI eyes is ugly hard to use, not intuitive, it has been deploy to all ESRI system since 1990s.
It tooks ESRI at least 10+ years to make this change finally !
And this change only available in experience builder so far at year 2024.
It is still not avaible to Arcgis Javascript API. But I believe you have to wait a few more years to see that happen.
Check box sample
ESRI eyes sample