Rotate camera as a character interacts with a collider

I have a 2D Sprite character walking along the X axis on a 3d plane with a Camera connected to a Spring Arm. Is it possible to rotate both the character its camera 90 degrees as it approaches the edge of the 3d Plane so it can continue along what “was” the Y axis but is now an X axis?