You can mask by placing your content in a Dynamic Panel with a fixed size. When you edit a state of such a panel you’ll see a blue dotted line that represents the size of the panel. Anything beyond the dimensions of the panel will be hidden.
To make it fixed sized, right click the panel and make sure Fit to Content is unchecked.