How to lock camera y-axis so it only moves forward?

In the world outliner, drag your new level cam (new view target reference) on top of your character

Again - do this in the world outliner to “group” the 2 assets

Cam will follow player but remain stationary. I just tested this successfully