Stop eating junk food. It's as simple as that.
For me the issue was that I stopped exercising during the lock down, but continued to eat the same amount out of habit. This led to me putting on a bunch of fat without realizing it.
To fix the issue, I primarily scaled back the quantity of food I ate without changing its composition too much.
If you were eating the exact same and just not working out, you wouldn’t have put on “a bunch of fat” at all. Maybe 10lbs over two years.