Demo: https://jlynx.github.io/PrivateWindowCheck/
Javascript used to check weather a users browser is in private mode or not
Please note for this to work your website needs to be running on HTTPS. Ther eis no excuse for you not to be using SSL these days as its free and simple to get. (Ref: "CloudFlare" or "Let's Encrypt")
This works on:
Windows
- Chrome
- FireFox
- Edge
- IE(11)
OS X
- Safari
Android
- Chrome
- Firefox
- Opera
iOS
- Safari < iOS 13
If the browser is not listed, then I have not tested it