Take in qm. You have the anticommutation rules of angular momentum. $H$ is invariant bu rotation iff it commutes with all the $L_i$. However you have $H=BL_z$ which does not commute with $L_x,L_y$, so no full rotation invariance. However, it commutes with $L_z$ hence the remaining $\phi$ invariance.