Make PDFs work on a site accessed by clicking link in Atlassian app iframe

We have an app where in Atlassian you can click on links to get to other parts of our app (outside of Atlassian). When doing so embedded PDF files can’t be viewed with the browser pdf viewer on the app site outside of Atlassian. This is because of a the iframe sandbox attribute on the Atlassian iframe.

Is there a good way to avoid this issue (without relying on a different PDF viewer)?