Out of equilibrium magnetised solutions of the $XY$-Hamiltonian Mean Field ($XY$-HMF) model are build using an ensemble of integrable uncoupled pendula. Using these solutions we display an out-of equilibrium phase transition using a specific reduced set of the magnetised solutions.