How to create a scope effect

I’m trying to create a scope effect that follows the mouse movement. How do I go about creating the zoom effect itself? And then once that’s done, do I attach it to the mouse just like a custom curser?

Thanks in advance.

Sorry if this is posted somewhere, I looked but couldn’t find anything.