1. It is recommended that you restart the mobile phone to check whether the function is restored.2.The magnetic field sensor is easy to be interfered by the external environment. The deviation of the compass indication direction of different types of mobile phones is within the normal range.3.Check whether there are interference sources with strong magnetic fields such as magnets, electromagnetic ovens, and microwave ovens. If there are interference sources, use the compass.4.After eliminating the interference source, please calibrate the compass. If the compass is not used for a long time or the current accuracy is low, start the compass app to enter the calibration interface. Please complete the calibration according to the prompt.5.If the problem cannot be solved by the above method, upgrade the system and check whether the problem can be solved.6.If the problem still exists after the upgrade, go to the after-sales service office for repair.