One time popup doesn't remember users

Hi Thrishti Labs , that sounds like a good idea,how do I write the code for that? Thanks!