How to use splitscreen and sharedcamera in the same game?

Hello, i have gamemodes that need use split screen, and others that dont. How i can enable and disabled in my gamemode?

Thanks