How can I keep the relative position of the stimuli when switching to a different screen size?

When I run the experiment on a different computer (with a different screen size) then the display and location get messed up.
For example, the video or image I show is much larger. Or the arrow that you have to click on to continue appears outside the borders of the screen, etc.
How can I keep the relative position of the stimuli when switching to a different screen size?

Use height units to maintain aspect ratios and relative distances.

Use norm units to fill the screen or keep things in the corners from getting hidden.

Use height units to maintain aspect ratios and relative distances.

Use norm units to fill the screen or keep things in the corners from getting hidden.