Zoom in out through pinch 2D screen

I want to zoom in-out the 2D Screen Element through pinch have seen this project on orbit camera
but orbit camera would not work for 2d screen any solution would be appreciated .

You won’t be able to do this with a 2D screen as elements are in screen space and anchored to positions relative to the physical screen. Eg top left corner

If you need to zoom in and out of something, it has to be in ‘World space’ but you lose anchoring to the physical screen