Woke up to find this bright yellow, frothy patch on my mulch. It appeared overnight and looks like expanding foam. Any ideas?

conditions are right—typically after a rain shower followed by warm temperatures—the spores can germinate quickly.
Once the spores germinate, they form a plasmodium, which is a mass of protoplasm that moves like an amoeba. This stage can happen very rapidly, leading to the seemingly overnight appearance of the slime mold. The organism moves over the mulch surface, engulfing bacteria, spores, and other organic matter, which contributes to its rapid growth.
3. How to Tell Dog Vomit Slime Mold From Expanding Foam or Fungus
While dog vomit slime mold can resemble expanding foam, several key characteristics distinguish it. Unlike expanding foam, which is solid and uniform in texture, slime mold has a spongy, frothy appearance and can vary in color as it matures—from bright yellow to brown. Slime mold also has a distinct, somewhat unpleasant odor.
In contrast to fungi, slime molds do not have a structured fruiting body like mushrooms.