I had the opposite on a 2stroke. Idled but stalled when you tried to rev...
First thing I did was pul the carb... Took it apart, cleaned it all nice, checked gaskets were seated nicely, cleaned needle etc etc... problem remained.
So I looked at everything else, cleaned the fuel tank, and...