I've repaired multiple gas stoves for people. The SiC element which heats up to ignite the gas fails over time. My neighbors were just replacing their stove every time this happened until I showed them how to do it.
I do about an appliance repair per year for me, one of our parents, or a close friend. It’s shocking to me how ready someone is to buy a $900 washer instead of replacing < $50 of wear parts. (Many times it seems they never even ask themselves “could this be fixed?” In the most recent case, the lint trap and duct needed a good cleaning, no parts.)
In my case, it manifested as an over which would take forever to come to temperature. The gas valve won’t turn on until the hot surface igniter allows a certain amount of current through.
It’s about a one hour repair on most ovens if you haven’t done it before. A ten minute job if you have.
Google your oven model and “hot surface igniter”. (I haven’t seen any on stove/cooktops, but usually on ovens. Stovetops seem to mostly use spark ignition.)