How to Create PUBG style Sniper Zoom Function

I think the inner picture is a render target:

or