Virtual agent switches to landscape in between of test

I am trying to run a job on browserstack. In between of my test, it automatically switches to landscape model which causes my tests to fail. This happens with both the virtual and local agent when using browserstack devices.

Is there a way to restrict a job to only use portrait mode?