dryer heats for 5 min then stops heating

Hi I have a whirlpool dryer the heat will only come on for about 5-10 min. then the burner goes off. any ideas on what’s wrong?

thanks