More info please. do you mean
1.when drone is still the camera rotates sideways on its own or
2.when flying straight forward the drone seems to fly a little off of straight forward or
either 1 or two might need gimble calibration, and/or a manual centering of the camera direction.
If the drone drifts to one side instead of flying straight, then a stick calibration might fix it.
The camera has its own IMU. It is located immediately under the cover, smeared with damper grease. Not calibrated. Just change the chip. Or the entire fee. The price difference is 20 times. Phantom 4 pro gimbal stabilizing by late