How to rotate a pawn around normal vector

I am trying to make custom character movement where the mouse X rotates the actor around the normal vector, and i am unsure where to start. Here are some images to show you what I am trying to achieve.

The first photo shows the pawn which is a cube. What i want to do is use the input from the mouse X in order to rotate the actor into something like image 2. I have been looking around everywhere and could not find an answer.