A. Lock the screen orientation on your device. Go to your device's settings, find 'Display', and enable 'Screen rotation lock' to prevent the app from flipping to landscape mode.
B. Check the app settings for any orientation options. Some apps allow you to set a preferred orientation, which can help prevent unexpected flips.