Why are my ankles swelling at night but ok in the morning?

Venous insufficiency. Most likely a problem with the veins and the more you stand throughout the day the more venous stasis. Putting on compression or support stockings before getting out of bed would be a first line of treatment.