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?
Open a new tab in Firefox and type in about:config
to go to its configuration window. This will probably take you to a window that warns you about the risks of incorrectly modifying settings. Simply click "I accept the risk!" to continue. Then search for the setting called apz.allow_zooming
and set it equal to true.