whirlpool gold slide in range

Top burners work great, oven lights but does not stay on and won’t heat up past warm.
Does anybody have an idea why?