Rotate screen, Android 11, 4C+

Is there a setting to rotate the screen if the monitor is mounted in portrait mode?

You can always flip it by setting the rotation using adb.