The fastest way to toggle the lock state is through the action panel.
: Rare driver bug; try restarting the device or resetting sensor calibration via Settings → Bluetooth & devices → Sensors (if available) or update graphics/sensor drivers. windows 11 rotation lock