This app was mentioned in 2 comments, with an average of 0.50 upvotes
If you have a tubular sight/scope, buy a transparent lens cover. You can find many online, just measure your sight and find it. Are you so unprepared that you lack a ruler? Install this app and follow instructions to adjust it with a credit card/ID as guide.
If you have a EOTech replica, buy a EOTech lens protector. For EOTech there's mainly 2 types, one super cheap and clunky, which does not fit all eotech versions (you may have to cut the corners) and has some lens distortion, the other is a bit costly but high quality GunsModify cover that fits right in for all EOtech versions, has an anti-lens distortion design and the profile doesn't protude.
Or OR if you have a phone like the average person just use the ruler app that you can download https://play.google.com/store/apps/details?id=net.kosev.rulering&hl=en