You will have to remove the back panel to access this part. Be sure that you unplug the machine before starting. Once the back panel has been taken off and placed aside the thermal switch will be located on the left lower side near the blower housing . It will be thin and long and located near the cycling thermostat that has for prongs on it. On certain machines, the thermal fuse is located in the front. To access this you must remove the kickplate, which can be done by pushing the clips, one on each side jsut above the top of the kickplate, in between the top and abottom portion. The part numbers are the same for either style dryer. To test this part you can either take the wires off it and tie them together then plug the machine back in and see if it heats, or you can use amultimeter and check to see if there is continuity, if there is its good, if not, bad. The thermal fuse will usually be white, and if located in the back, be thin and long with two wires on it, left and right. If in the bottom front, it will be front center on the exhaust duct. In some cases the ignitor or the gas coils will go bad. Here is a good process of elimination.
1)Verify that the thermal fuse is good. If you don't have a meter bypass it and turn the machine on. If heats, thermal fuse is bad, if not leave connected and continue
2)When the dryer starts and thermal fuse bypassed, the ignitor should start to get hot and glow, if your thermal fuse is in the back you are going to have to have to the top of the dryer up to see down inside near the front for the glow. You can do this by taking the lint trap out and removing the two screws and popping the top up. If the ignitor comes on more than likely the gas coils are bad and if it doesn't the ignitior is bad. (this is while the thermal fuse is bypassed so the ignitor has power to it regardless)
If you need further help, I’m available over the phone at https://www.6ya.com/expert/jason_4570d45317834dd3