Essentially what I am trying to complete is having a rectangle monitor sideways (vertical orientation) with the Android display in the Portrait position. Due to limitation of the monitor though it is not viable to rotate the display on the monitor itself. First I set disable the auto rotation and then set it to portrait mode.
adb shell content insert --uri content://settings/system --bind name:s:accelerometer_rotation --bind value:i:0
adb shell content insert --uri content://settings/system --bind name:s:user_rotation --bind value:i:0
adb shell wm size 1920x1080
I was able to find a relevant answer after some more digging.
Some of this may not be needed but this is what I did to acheive the desired effect. There was also a glitch where Android would not update the rotation so after restarting you have to change the rotation to something else and then back to the original.
adb shell root adb shell remount adb shell setprop persist.demo.hdmirotation portrait adb shell setprop persist.demo.hdmirotationlock false adb shell setprop persist.demo.singledisplay true adb reboot adb wm size 1080x1920 adb wm size 1920x1920