Cutout the excess outside the frame

New to Figma here.
I’m making a gradient effect with this rectangle here. I don’t want the excess of the rectangle to be visible outside the desktop frame. The problem is, I’ve put the rectangle element inside the desktop, but no difference.

1 Like

Hey, thanks!