Cosmological phase transitions occurred. I will talk about recent advances in modeling possible phase transitions when these transitions are mediated by scalar fields. I will discuss first- and second-order transitions, at various scales, and show how we can compute the background of stochastic gravitational waves produced during (and after) these transitions.