The spontaneous symmetry breaking taking place in the direction perpendicular to the energy flux in a dilute vibrofluidized granular system is investigated, using both a hydrodynamic description and simulation methods. The latter include molecular dynamics and direct Monte Carlo simulation of the Boltzmann equation. A marginal stability analysis of the hydrodynamic equations, carried out in the WKB approximation, is shown to be in good agreement with the simulation results. The shape of the hydrodynamic profiles beyond the bifurcation is discussed.