Question for the mums that did a surprise gender reveal party

Megan

Genuinely curious coz I didn't find out the sex until birth.

I keep seeing gender reveal videos where the couple's are just as surprised as the guests at what the sex is, how does that work? Like does the sonographer give you an envelope with the sex written on it that you give to the place that makes the balloons/cakes??