How to make a horizontal-only camera?

I need to make a system that only allows the player to look left and right, not up and down.

However my game is first person, so Orbit doesn’t work for some reason.

How could I do this?