When the dryer runs, gets hot and then shuts down the most likely cause of the problem is a bad thermistor but you say you have already replaced it once with no improvement.
To answer your question this particular dryer uses a thermistor to control the temperatures. There is also a high limit thermostat located on the upper part of the heater housing. On the rear wall of the dryer is a thermal limiter.
A thermistor failure would cause the dryer to beep and shut down. A high limit thermostat failure would prevent the dryer from heating but it should still run.
A thermal limiter failure would not allow the dryer to run at all.
One thing to try is to run the dryer in an air fluff cycle with no heat and see if it runs longer.
This problem will require a volt/ohm meter to check the thermistor.
I would recommend the 134587700 thermistor be checked as soon as possible after the dryer shuts off. The image below will help with this.
I hope this information is helpful to you but submit another question with any additional details for further assistance.