whirpool roper dryer

i am having trouble with the dryer running for 5-10 minutes then shutting off. I have cleaned all the vents i have replaced the motor… The dryer gets hot but stops. I then unplug it and let it cool for a while then it runs for 3-4 minutes and shuts back off. please help