My car keeps over heating when I’m driving

The factory temperature gauge is right dead in the middle when driving. When it’s stoped it goes pass the middle.
Ok, if it's only at idle then it's a good chance it's your fan and shroud set up. time to upgrade