Looks like you used Godot, so if you want to restrict the resolution you can play with the stretch modes in Project Settings to prevent problems!
okay, thanks for the advice