Hide Lightbox for Returning Visitors and Subscribers (using IP?)

I have a lightbox that prompts visitors to subscribe to my website - by subscribing they only receive emails and there is no log in feature to access anything (emails, etc are stored in a database), so having the lightbox hide for logged in members is not a solution. However, I would like to hide this lightbox for the subscribers and adjust how the lightbox displays for returning visitors. For example, maybe a first time visitor sees it and then it does not appear for several visits, but might reappear on the fifth visit (or a different lightbox appears that says something cute about how frequently they visit, why not subscribe?)

I think using their IP address would be the best way to do this, but am open to suggestions. The problem I face with that method is I don’t think I know my subscribers’ IPs at the moment. I found this code which I think would be an excellent starting point: https://www.wix.com/velo/forum/coding-with-velo/user-ip-address-finally-resolved

import { fetch } from 'wix-fetch';

$w.onReady(function () {
    fetch('https://extreme-ip-lookup.com/json', {
        method: 'get'
    })

        .then((httpResponse) => {
            if (httpResponse.ok) {
                return httpResponse.json();
            }
        })
        .then((json) => {
            const ipaddress = json.query;
            console.log(ipaddress);
            return ipaddress;
        })
});

But how do I leverage this? Can I compare the session IP to those stored in any of my analytics?

This is all outside of my coding experience which is very limited to page design and functionality.

Thanks,
Robert