The Fit Mode functionality is available on the Toolbar:

But not on the context menu (accessed by right-clicking the flamegraph):

It's a good idea to have the same functionality in both places, since people may not be using the toolbar (eg in the grafana plugin).