Exiting the desktop mode has a similar process as entering. Hold down on the Steam Deck's power button and you'll see the option to exit. Press this, and the Steam Deck will reboot into SteamOS.