Workout, diet, mindset habits/CBT are all fundamental as mentioned.
It would also be worth getting hormone levels checked to see if there are any hormonal imbalances or big nutritional deficiencies. You would be surprised how correcting deficiencies, hormonal imbalances, or working on gut...