I’m using EndeavourOS with KDE.

The display is correctly oriented when logged in but on the when locked, it hasn’t rotated correctly.