help me setup the camera,please

Hi,guys! I recently saw this game Little Nightmares - YouTube I`m wondering if you can show me with pics or a video how can I make a camera like they used ( I mean locked on a side,the player not being able to rotate it).Would be amazing if you can help me,ty!

You can start by studying the SideScroller template (start Epic Game Launcher → launch Unreal Engine → New Project → SideScroller template).
You can find more details if you search about Side Scroller.