Dryer turns off and won,t restart for about an hour

dryer turns on and runs maybe 10 minutes and then shuts off just like it is unplugged after a 1/2 hour to an hour it will turn on and continue drying until clothes are dry

If it’s a bad motor, you should be able to turn it back on after 1/2 hour. This is due to the motor overheating from too much current. The internal motor thermal cutout is opening. Only way to verify is to pull the motor and check for burnt windings or bad bearings.