Hi thanks for the question, So it heats for a few minutes a shuts off and no more heat
Did you check the venting ,It could cause this problem.
Let me know
The problem is with the gas coils ,They chatter like that ,Replace the coils
It will repair the dryer
The Appliance Doc