How to use record app functionality when app launch in landscape mode

I am getting driver exception whenever tried to record or use mobile spy for an application used on Android tablet. App launches in Landscape mode. Any idea how to handle this?

Try to swich to potrait mode
Below tutorial helps