Detect ipad landscape right/left on startup then lock it.

Is it possible to detect the current landscape as either right or left during the startup process and then permanently set it. I have an app that i don’t want to start upside down, but it can’t have autorotation on because a plugin (screenrecorder) I am using cannot handle autorotation.

Yes, sure you can do that. Have you tried?

Get the device orientation,
Set the screen orientation.
What else do you need?