Probably the timer inside has contacts stuck together. Inside the timer is a barrel with humps. As the motor turns round when it gets to towards the end of the cycle them contacts release and start the cool down cycle. If it gets near the end and you open the door and the dryer is still hot that would confirm my suspicions.
I used to send these off to Michigan to be rebuilt. Midwest timer service charged me about 23 bucks to rebuild these or $35 for a new one. Them days are gone now. I am no longer in the biz. I have had a little success in fixing timers. To get into the timer you remove two screws and lift the metal plate right? Wrong! You must first remove the small ring around the shaft so that you can lift the plate off without disturbing the innards. That is the secret. Once you get inside the timer you free the sticky points and file them down smooth WITHOUT manhandling the delicate metal tabs that the points are attached to. You have a 50/50 chance of fixing it.