Lock screen resolution?

I’m making a little game that runs in 480p with a simple fullscreen option, but I also realised that the runtime window can be freely resized to what size you want. Is there any script or way to disable this?