Auto Mode (change)-> Loiter Mode

When the drone was flying automatically in auto mode and changed to Loiter mode, Is there a parameter that can reduce shaking?

It shouldn’t be shaking, probably your tuning (PID or PSC, IDK) is off, can’t say anything without onboard logs.