How do I rotate the screen? Raspberry Pi 4 B (Raspberry Pi OS Lite 32bit)

my environment:
Raspberry Pi OS Lite
Release date: February 21st 2023
System: 32-bit
Kernel version: 5.15
Debian version: 11 (bullseye)

The monitor I’m using is a TV

I have tried the following. but i haven’t solved it yet

  1. /boot/config.txt
    display_rotate
    display_hdmi_rotate

I tried setting 1 to 4, but it is not reflected.

  1. command of cui
    DISPLAY=:0 xrandr --output HDMI-1 --rotate right
    DISPLAY=:0 xrandr --output HDMI-1 --rotate left
    DISPLAY=:0 xrandr --output HDMI-1 --rotate inverted
    DISPLAY=:0 xrandr --output HDMI-1 --rotate normal

This was also unexecutable because there was no command.

  1. /boot/cmdline.txt
    Rotate Screen on Pi4 - RetroPie Forum
    video=HDMI-A-1:1920x1080M@60,rotate=90

Console screen rotated successfully.
But images of anthias failed to rotate.

Is it possible to rotate the screen in Anthias on Raspberry Pi 4 B (OS Lite environment)?
I would like to know the solution.