Popup for visitors who are going to leave the website

Hello everyone. Does anybody know how to make a lightbox which will appear when a visitor wants to leave the website? Where I can find the code and how to integrate that code to have a desired result?

You will want to vote for this request asap.
https://support.wix.com/en/article/request-triggering-a-lightbox-when-a-visitor-attempts-to-leave-your-site

You can use third party apps.
https://support.wix.com/en/article/third-party-app-conversion-popup

You can make up your own lightbox by use of an onViewportEnter or onMouseIn function and then have the openLightbox command included in with that function. Although note that onMouseIn will not work on mobile devices.
https://www.wix.com/corvid/reference/$w.ViewportMixin.html
https://www.wix.com/corvid/reference/$w.Element.html#onMouseIn
https://www.wix.com/corvid/reference/wix-window.html#openLightbox

You can already do a one time pop up.
https://support.wix.com/en/article/corvid-tutorial-creating-a-one-time-popup

Thank you for reply! Is there any step by step video instruction how to make that popup?