To make limitations like these you’d need to make changes to your current theme’s code. Our Shopify Support team aren’t equipped with coding knowledge, so to help you code a tailored solution onto your store’s theme you can look into hiring one of our Shopify Experts.
Otherwise, a third-party popup app from the Shopify App Store is a great alternative you can consider. A lot of these apps would allow you to have more control over the popups and how, when, and where they appear on your store. For app-specific questions about any of the third-party apps you see on the App Store however, feel free to consult with the app support team directly as they’re best equipped to assist.