A mask layer is typically used to cover a page, preventing users from interacting with the page or elements, while displaying some informational or loading state messages.