Checks if the device is in portrait mode.

app.IsPortrait() → Boolean

Example - Check Portrait click to expand contents