Unfortunately not, certainly not on mobile. I don't know if this is the case on iPhone, but on Android some apps make it really hard or impossible to screenshot them.
I think in recent Android versions they can even prevent the screen from getting mirrored to a connected PC / other casting device.