rotate a material in the Material Graph

You can use the Custom Rotator node as an Input on UV Channel on the Linear Gradient node and in between the TexCoord and Multiply node.

If you want continues rotation, you can use the Rotator node instead.