Hi, the phone I am using is the xiami mi cc9 that used to be my mom’s. It one day developed the issue where the rotation was 90 degrees incorrect in the anticlockwise direction. For example, if the phone pointed downwards, it rotates to the right. If pointed to the right, it will rotate on the phone upwards, and so on. She’s passed the phone down to me, and despite factory resetting the phone, it has still not resolved the issue. If anyone knows a possible solution, please let me know, it would be greatly appreciated.