Whirlpool elec oven overheats then locks

When I am baking with my Whirlpool oven, sometimes it changes from bake to broil and the heat increases and the oven locks. I have had this problem on and off for about 1 year and would like to know what I should do to test/repair it. Thank you for your help!
Jean King

— Begin quote from jeanking;439450

When I am baking with my Whirlpool oven, sometimes it changes from bake to broil and the heat increases and the oven locks. I have had this problem on and off for about 1 year and would like to know what I should do to test/repair it. Thank you for your help!
Jean King

— End quote

I’ve had the same problem, know it won’t turn off
Thank your for any help , Teresa