Hi thanks for the question.
The problem could be the coil.
Are you watching this happen with the front panel off the dryer ?
That is a coil problem. the coils get hot after a few minutes of use and then wont come back on again till they cool off.
Replace the coils it will fix the problem.