when i start in the morning my car work good after about 2-3 hours it don't pass on 1997 Mitsubishi Galant

3000rpm if i turn off the engine for 1min and start it work good for half an hour what could be the problem

Asked by for the 1997 Mitsubishi Galant
Have it scanned.