Whirlpool duet dryer

Dryer starts may run for a minute or two turns off and won’t restart for a while may be 2 hours or more . Tried to dry yesterday stopped didn’t restart until today but it cut off after a minute hasn’t restarted yet. Help!!!