Since there are a few questions about it elsewhere as well, here is an example of how you could do the resizing after listening to the resize event from the window function scaleScene(renderer, sceneContainer) { const gameWidth = 960; const gameHeight = 540; const gameOrientation = gameWidth > gameHeight ? 'landscape' : 'portrait'; const gameLandscapeScreenRatio = gameWidth / gameHeight; const gamePortraitScreenRatio = gameHeight / gameWidth; const isScreenPortrait = window.innerHe