code to not display pdf-download button when in mobile mode