I think a lot of it is how you approach it in your head. It's kinda like quitting smoking. For me, once I told myself "this is the last one"......it was. I had to get my brain on board with my body. I still like the smell of someone smoking, but I detest walking into a casino and being surrounded with a blanket of smoke. It's been around 20 years now.
I think you have to start with a plan. Be open to trying new things. I read Obesity Code and started doing some intermittent fasting. That worked well for a while for weight loss, but eventually, the loss stopped. I still continued with it for the health benefits. Then I gravitated toward keto. I didn't go hard core with the keto b/c getting under 20g of carbs was really hard. Still, I gave it time and even going low carb helped me drop some pounds. I'm still learning new things every day with keto/low carb. In fact, last night I made a new recipe and it turned out great. All the new recipes I have tried have turned out great, so there are some up sides to trying something new.
I have always been an exerciser so that part was never an issue for me. I have more exercise options than I can count and have a nice space to workout in. I think that is why I have been able to get away with terrible eating habits when I was younger. Now, that I'm getting older and losing estrogen, I have to get more serious in tackling the nutrition aspect.
In the past when I was successful in losing weight and keeping it off long term, I coupled strength training with logging my foods and hitting my goals in both areas. I use sparkpeople.com for logging my foods. I'm sure there are easier platforms out there, but spark is free and I already have my favorite foods listed so it works for me. It gives a breakdown of all your macros and some micros along with a pie chart of macros. I also enter notes in the nutrition and exercise trackers so I can go back and see what was going on if I need to review. I also weight myself once per week. Any more than that, and it drives me crazy.....and less and I'll go off track.
Just like any other goal in life. You have to have a plan. You have to implement the plan. You have to monitor the plan and tweek as you go. And write it down! Writing down your goals and your plan will clarify exactly what you need to do and why. If you use sparkpeople, you can use the journal in the nutrition tracker section instead of pencil and paper.....or good ole' pencil and paper work just ifne. I also use a cheap folder with pockets to put in printed recipes, clippings, grocery lists, websites, etc. that I have written on scrap paper and need to put in one place. I'm a note taker, so the folder helps keep me organized and focused. Once you reach you goal, I think you could lay off the tracking (b/c it IS very time consuming)....but until then, I think it's a very helpful and (for me) necessary tool to use.