Problem when rotating minimap

I do already have a minimap that can show where I am and rotate but the canvas that contains the minimap is a square and I’am using the render transform to rotate the image, so that means the whole squere rotates.

As of right now it is made off two widgets. One with the image where it will be moved to match the players position and then it is added to another widget where it is rotated.

This is how the first one looks.

And here is the the second one.

Then it is dropped on to the player HUD widget.

As I see it, the best way to fix this is to create a mask of some sort but I have no idea how to do that, I did try to do that with canvases but it clearly didn’t work. I’am open to any ideas and suggestions.

Thank you.