retropie should detect what output you are using and let user decide what settings for retroarch to use on each, like audio drive or aspect ratio and more.
or a place in the config that would allow you to choose between hdmi / composite so all you would have to do is ssh in and change a line in the config to choose hdmi or composite out or just change it in x or the terminal and reboot.
what if I have my HDMI always connected but I want to hook up the pi to a bigger screen through composite ? all while the HDMI is still connected Is that possible?