Custom Android on portrait only shows half screen

I built my custom image for to a Raxa Rock 5B board and I changed the screen orientation to 270 because that is how my display is setup in the product.

It works fine, except when I connect via TeamViewer.
The screen is cut in half for the host:

Without rotation, it works fine, both screen and TeamViewer appear correct in landscape.

But when I change to portrait the problem appears.