Joy-Con drift pops up if the controller incorrectly registers an input.
How to Fix Joy-Con Drift on Nintendo Switch and Switch Lite
Clean the joystick.
Connect your Joy-Cons to the Switch.
Nintendo
Reset your button configuration.
From theHomescreen, go toSystem parameters>Controllers and Sensors>Change Button Mapping, and then selectReset.
Check for firmware updates.
Like the console, Nintendo issues new software to the controllers to make them work better and more efficiently.
Check for software updates.
If you’re only getting drift in one game, see if it’s up to date.
Check the in-game parameters to see if it’s using motion controls instead of joystick ones.
Remove any decals or skins from the Joy-Con.