Loosen caliper bolts, squeeze brakes on and hold while retightening to realign does the trick for a bit
I’ve not had much success with that method.
Remove pads. If they have a painted back, try sanding off the paint to reduce the overall thickness. If this doesn’t fix it, go to the next step.
Remove pads. Push pistons back. If you suspect they are not pushing all the way back, crack the bleed nipple to allow excess fluid to weep out as you push the pistons back. Re-tighten nipple. Check pistons both move equally by pumping the lever a few times…DO NOT pump too far as the pistons may pop out. Each piston should move out the same distance for each pump, if one is sticking hold in the moving one to get the stuck one moving. Once its out 5mm or so you can use a little brake fluid on the side of the piston, when you push it back in it will lube the seal. Push pistons back and repeat until they move equally.
Leaving the pads out, align caliper by eye over the disc. Easiest with bike upside down.
Make sure there is no fluid left on the caliper, check both pistons pushed all the way back, re-insert pads and wheel and then pump the lever until it firms up.
Test ride.