How to reset resolution



I have a Raspberry Pi Zero W2 running a recent version of Kodi. It was connected to my roommate’s 4K TV, but when he moved out, I forgot to reset it to only use HD resolutions. When I connected it to my regular HD TV, the TV says “unsupported resolution” and I can’t get into the user interface to change it because I can’t see anything. I have access to the file system via shell. Is there any way I can reset the resolution remotely? I could always pull the SD card and reload Kodi from scratch but I would rather not do that if I don’t have to.

Any advice is appreciated.