Could be a number of different things. But as always start with the easy stuff. New spark plug. Try putting fuel on reserve. Remove gas cap( Could be a tank vent issue.) There are a number of things common things that go bad when warmed up. Or cause random miss fires. When you change the plug try removing the spark plug boot off the wire and cutting about a 1/4 inch off and screwing back on.(It just unscrews off lefty loosy righty tighty). If none of that works i would start with coil. Then cdi. After i got a spark tester light and watched it act up with it on and saw the light flicker and go out when it shut off. That would confirm 100% its spark related. That should get you started in the right direction!