If a continuous symmetry is spontaneously broken, then the system contains a Goldstone boson, which in not possible in 2d because massless scalar fields have IR divergent behaviour in 2d.
If a discrete symmetry is spontaneously broken, there is no Goldstone boson so the previous argument does not apply.
The most famous system with a spontaneously broken discrete symmetry in 2d is the Ising model ($\phi^4$ field theory)(the discrete symmetry being $\mathbb{Z}/2$).