From the Super Mario Wiki, the Mario encyclopedia
If Captain Toad or Toadette lose a level often enough, a sprout will appear with an Invincibility Mushroom. Plucking it and collecting the mushroom will cause either Toad to glow, similar to a Super Star. However, the effect lasts until the end of the level, making it easier for them to deal with tough enemies, leaving any puzzles within the stage as the only remaining challenge(s). This item is very similar to the Invincibility Leaf item from Super Mario 3D Land, New Super Mario Bros. 2 and Super Mario 3D World.
An Invincibility Mushroom also appears in the Minion Quest mode of Mario & Luigi: Superstar Saga + Bowser's Minions. The Little Fungitown arcade proprietor bribes the Minions to fetch one from a cave in the mission Find the Invincibility Mushroom! However, since neither he nor Captain Goomba know what an Invincibility Mushroom looks like, the latter ends up picking a Poison Mushroom instead accidentally, which makes Mario succumb to Bean Fever later on.
Captain Toad: Treasure Tracker
Names in other languages