Crop image feed from 9:16 to 1:1

Hello there.
I have a WebCameraTexture of a phone camera, thus it has an aspect ratio of 9:16.
However, i have a RawImage, for the camera feed, that has an aspcet ratio of 1:1.
How can i crop the image in order to have the same proporions but with an aspect ratio of 1:1?
Basically i would like to crop the long side of the camera so that it has the same length of the short side, and then center the content.
I tride looking up online, but all the solutions were like very old, like I heard that you should use for this natCamera asset, but i couldn’t find it on the assets store.
Please let me know if you have some suggestions, thanks!

You could perhaps Graphics.Blit(); the webcam onto another texture.

Another way is to just use an Image and create a Sprite out of your Texture2D and assign that Sprite to the Image.