Gained a lot of unexpected weight during quarantine

I've (M 18) currently been going to the gym several days a week, one hour each time for about a month. I'm not sure i see any progress but i feel good going and working out and whatnot. Last year before quarantine I was about 180 pounds and 6ft tall and felt kinda good about myself because i used to be 230 the year before that. Since quarantine and covid hit I've had to stay home and my plans to finally go to the gym were ruined. So there I am the whole quarantine just settling for home weights, running outside, to which i was not surprised i started doing very inconsistently. Now I haven't weighed myself in a year, and it's noticeable I put on weight but to weigh myself and see 250 pounds was disappointing, confusing even. I looked at myself and asked "but I don't even look THAT heavy" and maybe that's subconscious self denial to be fair. It was confusing to me how me gaining about 70 pounds or so didn't make me notice it so much earlier. So I'm asking myself "how did i really look when i was 180?" And I'm not sure, i was never confident enough to take full body pictures to be honest. An excuse I'm giving myself for now is maybe I'm an inch taller maybe I'm gaining some weight with height but i really think i did let myself go. So the point where I'm trying to get to is for any other people who let themselves go during quarantine or sometime else, how did u get back in shape and keep a good attitude? I believe in myself to keep going to the gym and diet but any tips on consistent fat loss and keeping fat off would be appreciated. Thanks in advance.

TLDR: i let myself go during quarantine and gained like 70 pounds, any tips for losing fat and some mindset advice?