Isometric camera with lock the horizontal movement

Hi guys.
Anyone maybe have solution, how to made Isometric camera with lock the horizontal movement? Like a Diablo, Titan Quest… etc

Thanks