Nearly done with my 1st game, but have an issue with portrait orientation at start

So I have portrait and landscape setup properly in my game. I’m testing on my android device. When I launch the game in portrait mode it doesn’t zoom in as I have it coded to do so when in portrait mode.

This is odd…the menu system that I have that starts at launch works fine. But then when I select the game mode it’s zoomed way out for portrait mode. If I rotate to landscape and back to portrait mode while playing the game (main.collection) it then zooms fine.

Check out this video for what I’m talking about. I’m sure I’m just missing something simple, but I can’t figure it out.

Finally solved it. You need to detect window size when starting the scene. this is how I did it.

self.width, self.height = window.get_size()
--check if game starting in portrait mode, if so set zoom to 2.0 
if self.height > self.width then
	camera.set_zoom(camera_id, 2.0)
end