I have tried the solution given on this link https://itstillworks.com/enable-zoom-pinch-firefox-macbook-21731.html
This seems to just increase the zoom percentage as can be done by Cmd + +. But what I wanted was the way Chrome and Safari do it, to zoom into a particular part of the page(the part where the pointer is) and then you can scroll also in those particular settings. Like zooming in as if the webpage was an image. Is this feature available in Firefox?