Keeping viewport/cube in same position regardless of screen size

You could use the same trick than here:

Or: