2006 Polaris Sportsman 800 starts/runs fine for few minutes then runs like crap

I have a 2006 Polaris Sportsman 800 and just got back from a weekend trip to Hatfield McCoy trails in WV. At the end of the second day of riding the Polaris started acting strange. It would start fine and run fine for a minute or two then slowly it would start to struggle to keep speed and after another minute or two it would struggle to do over 15-20 mph. If i stopped and turned the engine off and then restart the engine it would run fine again for another minute or two and then same thing would happen it would lose power until it could barely move itself and i would repeat the process again. Has anyone had experience with this before? I’m not sure where to start with diagnosing this.