I'm trying to rotate a set of textures (albedo, roughness, normal) using Texture Coordinate and Mapping nodes in Blender 2.83. Location and Scale properties work properly, but when I change Rotation the shadow isn't right. Looks like direction of light also changes. You can see on the second screen - rotation is 90 degree and it looks like the light is on the bottom and not on the right (considering shadows, not luminosity). On third screen I rotated the plane itself 90 degree and it looks right.
I've tried different outputs of Texture Coordinate, types of Mapping and types of Normal Map, but cannot find the right combination. Could you please help?
Edit 1: added solution for 90 degree rotation based on michaelh answer
Edit 2: added solution for custom rotation based on michaelh answer and scurest comment