There could be - for example some bank apps avoid screenshot - WhatsApp payments know when someone takes a screenshot
There could be a way for mobile android and ios
Please check the developer docs
Tracking User Screenshots Within an App: Is it Possible? | Mixpanel Community