On the Mavic 2, the camera gimbal rotates to the left.

The DJI GO 4 app works normally on the Mavic 2 app. When using the Litchi app, the camera gimbal turns to the left and stops working immediately after powering on.

Did you Force Stop DJI GO 4 before running Litchi ?
Did you enable the Aircraft Setting “Sync Gimbal Heading with Aircraft Heading” ?