Whirlpood dryer

I have a Whirlpool dryer, not sure the model # but when it starts it heats up for about 30 seconds then the element goes off and stops heating for about a minute or two. Then the element comes back on for about 30 seconds again and keeps repeating this cycle. Any idea what might be malfunctioning? John