Show popup modal on public links

How do I show a pop up that calls the backend on the public links page?
I’m trying to create an external app and when I click on the app it shows up…but I don’t understand how to get it activated via hooks. What would be the correct way to do this? I want it to trigger only on public links pages.