You should use a function that determines the screen resolution and changes the size/layout of panels/etc accordingly. You can use the variables 'screen_size.x/y' to check the resolution.

You should run the function when the game starts.