Set your default video resolution at 720x576i or 720x480i and switch to 240p when running a game, using the Runcommand onstart script - https://retropie.org.uk/docs/Runcommand/#runcommand-onstart-and-runcommand-onend-scripts.