Cancel the modal DOM on mobile side