Popup Prank runs hidden in the background and watches for web browser activity. When it detects that a browser has been opened, it waits for the specified delay period, then displays the fake popup advertisement. This makes the prank feel realistic because the popup appears in the context of normal web browsing.