My dryer at one point was clogged between the lint screen and blower..
I Cleaned that out along with the exhaust venting.
It now takes forever to dry ..
The element still gets hot ..but cycles on and off..
The heater housing seems a bit burnt..
I suspect it is one of the thermostats...
So could it be the High-Limit Thermostat or the Control Thermostat located by the blower..

Model PYE2300AZW