Remove footer on modal when modal is popover on mobile.