From the Super Mario Wiki
A Marshmallow Block is a type of block that appears in Wario World in the sublevels beneath Wooden and Steel Trapdoors. They make the challenge of completing the sublevel more difficult. This is because they disappear almost immediately once touched, meaning Wario must be careful he does not fail to reach the next platform. They can be considered a more dangerous form of Drop Block.