If you have an iPhone or an alternative with a similar feature set…

Then you should know that you can set up some automation that will unlock and lock and the screen orientation when opening or closing certain apps.