From what I'd read, my understanding was that thyroid issues, such as hyperthyroidism (this is only one condition AFAIK), are very hard to control, at least via diet.
But the goal is not to control the thyroid issue by diet, the goal is to control weight by diet.
But I don't disagree that the thyroid issue makes diet harder, for reasons like increased hunger, less energy, etc(?)
I tried googling, but the results aren't very useful with regard to the exact mechanism how thyroid problems cause weight gain.
Edit: From more reading I now believe that it's still a diet problem, but the thyroid issues seem to make it harder to eat less.