Cold water occasionally?


So for the last 2 weeks every so often I’ll turn my hot water on and it starts out luke warm and then just goes cold??

-when it does this I haven’t used the water let alone hot water in hours.

-I turn it up to hot and it just come out like warm and turns cold pretty quickly .

Plumbing is not my strong suit. So any ideas welcome.