Writing this kinda as a reply to Matt Nik’s post about Dualsense controller durability. Posting here in general because this fix can work on any controller with stick drift, not just on the playstation side. I had to do this a lot with my PS4 controller during that generation.
To preface this though, I recommend not to do this right away the first time your controller develops drift in its life to see if the controller goes back to normal after a day or two on its own. My PS5 controller had stick drift after about 2 years of use but it only drifted a day without doing this fix and then never did it again, still working like new after almost 4 years.
The temporary fix:
1. Whichever analog stick is impacted by the stick drift, move it all the way in the opposite direction of the drift. So if the stick is inputting rightward drift, move it all the way left.
2. Next, blow into the stick on the side where the drift is, so in this example blowing into the controller via the very right side of that stick that is now exposed by it being moved over to the left.
3. Last, move the stick in the direction where the drift is, and keep it held in that direction while rapidly pressing the stick button. Press it around 20 to 30 times. Repeat all steps when the drift returns, unfortunately this fix will last you 1 to 3 gaming sessions until it comes back. But hey, it could save money from replacing drifting controllers. Definitely can save you some irritation as well.
Hope this helps for anyone who has this problem!