The thermostat is cheap to replace and easy to blame. Three conditions here produce the same complaint without touching it.
Condition one: incoming temperature
Water arriving close to freezing takes longer to raise. The same setting gives cooler water at the tap in winter than in summer.
Condition two: how the cabin is used
Weeks of idling followed by a full house is a recovery test, not a temperature test. A working tank can look inadequate on the first morning of a visit.
Condition three: distance
A far bathroom with an uninsulated line delivers cold water before hot. That is travel time, not control failure.
Proving the part
Test the elements and the thermostats, then watch a real draw. On gas, confirm inlet pressure and proving, then observe the control respond.
Setting it sensibly
Hot enough for the household. Where more hot water is wanted, store hotter and blend at the outlet rather than turning the dial up.
The free jobs while it is open
Check the anode. On this water it is the wear part, and the access is already there.
What to have ready
The symptom pattern, fuel, age, occupancy.