I had something similar but with a B&S mower engine.
I could start and mow but as soon as I shut it off to move something in the yard it would not restart.
Spark plug showed spark, checked shear key, cleaned carb, etc.
Nothing fixed it.
I would tape the shut off bar to the handle to mow...