I had the same problem many times. Quizmaster once wrote on Reddit:
However, there is a problem with your SVG that will prevent zooming from working correctly. It looks like you are using a height/width tag that is not the actual height/width of the SVG. To fix this do the following.
1. Open the SVG in a text editor
2. Remove the lines that say: width="???" height="???"
3. Open the SVG Inkscape
4. Select all
5. Transform the size to ???x???
6. Then go to file ->Document Properties and Resize Page to Content
However, there is a problem with your SVG that will prevent zooming from working correctly. It looks like you are using a height/width tag that is not the actual height/width of the SVG. To fix this do the following.
1. Open the SVG in a text editor
2. Remove the lines that say: width="???" height="???"
3. Open the SVG Inkscape
4. Select all
5. Transform the size to ???x???
6. Then go to file ->Document Properties and Resize Page to Content
Hope this helps!