When mushrooms become visible, collect them, leave the screen, then return to collect them again. Repeat this until they no longer appear.