Thanks for the response. A couple of posts indicate that this is an issue with HP. It seems like Windows is thinking that your device is still in laptop mode instead of convertible mode.
Windows 11 rotation lock is greyed out. : techsupport (reddit.com)
Can you try updating everything using HP support Assistant and uninstall Accelerometer to check?
Open device manager and look for Sensors tab, there should be your accelerometer. Open it and uninstall the driver. Then in the very top of the device manager window select Action and click scan for hardware changes. This should reinstall the driver and after resetting the computer it may start working. I hope it will work for you.