Having been morbidly obese, i can say that being told to lose weight doesnt work.
You have to want it, be dedicated to it, and have the mental support.
For me it was exercise and changing your food patterns: more small things to keep you full longer. Not denying yourself anything, but everything - and i mean everything- was weighted, added to a calorie tracking app. Your max is your max. Want crisps? Sure, but that comes out of your food budget.
It requires dedication that i find a lot of people are just not willing to put into it, and hence... the popularity of a drug like Ozempic.
I've lost 70kg (154lbs) and it is nearly a decade in still a struggle, having been obese for 20ish years. But the health benefits alone make it worth it.