Additionally, we should try to state your ideas here more precisely.
You could describe how the orientation changes and get locked during 1) an opening transition and 2) a closing transition.

For example,
Case: when browser app is opened from homescreen and the current device orientation is 'landscape-secondary'.
1) ....
2) ...
3) ....