4K Portrait Transcoding Settings

Hi, I am trying to get a good quality 4k Video to display on a Raspbery Pi4 Model B 4gb. No matter what I do Yodeck encodes and displays my portrait videos in landscape. I tried Handbrake and managed to get 1080p portrait playing but none of my attempts at 4k portrait transcoding have worked so far. Any suggestions as to what settings I should be using in handbrake for yodeck compatible 4k portrait videos? Thanks