If you're looking for a custom widget to toggle between groups of layers, my "A better layer switcher" (ABLS) widget might be what you're looking for. You can find it on my GitHub here, or on NPM here, which you can install into your Experience Builder installation using the CLI that I've built, documentation here.