How to rotate hyperpixel 4R with adafruit cyberdeck hat - console and X?

Hi
Working in console but not in X

I have a Raspberry Pi 400 with a new stock image and am using an AdaFruit Cyberdeck HAT to attach a HyperPixel 4", Rectangular, no touch

I boot to a console which rotates properly but when I enter X using startx the rotate setting seems to be ignored

I’ve added these to my config.txt

dtoverlay=vc4-kms-dpi-hyperpixel4
dtparam=rotate=270
...

How can I have both the console and X desktop rotated?

Thanks very much

Have a look see in Preferences > Screen Configuration.
Layout > Screens > (Hyperpixel) > Orientation > and select Inverted.