Help with script to play Lottie Animation only once per user


I’ve added a Lottie Animation that appears on Page Load trigger. However, I’d like to add a cookie script that only allows it appear the first time a user lands on the site.

Does anyone happen to have a cookie script they’ve used for this?

Thanks in advance!