What this guy said. Welcome to the forum btw.How many miles?
In MOST cases it can be a faulty thermostat which is easily replaceable. But it can be other things as well. Such as a faulty fan switch or fan relay or fan fuse or water pump, etc.
When does it mostly occur?
BTW, this is posted in the wrong section. Post in problems and fixes and you will get more replies.