Being that this his happening when the engine gets hot, I would suspect the plug or coil. Many places sell "lawn mower plugs", but they are not always correct.
Please provide the engine information if possible. There should be a information tag or a series of numbers stamped into the valve cover that would help us help you. The machine label does very little to identify the engine.