How to clamp yaw on a 1st person camera in relative space?

I’ve basically got a first person camera inside a car that can look up/down, left/right. I can limit the pitch and yaw and I get the intended effect when the car is moving forward, but if I animate the car to turn, it becomes apparent that limiting the yaw in this matter is specific to world space, not relative space because the camera is locked to that forward direction and does not re-orient with the car. I’m wondering if anyone out there can think of a way to clamp a first person camera’s yaw in relative space?