Whirlpool Duet Dryer

My dryer will come on, sense, begin drying, then shut off. It will stay on 5-10 minutes, and once it is off, it will not come back on for about 30-40 min. Then it will restart. It almost seems like it needs to cool off. I have tried to clean the lint, unplug it, and I have tried drying on different cycles automatic and manual. Same thing! It does heat up nicely and it will dry the clothes…EVENTUALLY because of the stopping and starting. I am not sure if I need to replace the thermal fuse, or the thermostat, or something else. Please help!!!