Stretch mode difference between test build and export

Godot Version

4.7.stable

Question

I’m setting my Project so that Display>Window>Stretch>Mode = canvas_item and Display>Window>Stretch>Aspect = expand

This works when I export the game as standalone app (Project>Export…) but has no effect when I run it in the editor as a floating window (Command+B)

Is there anything additional one should set to make sure I can get consistent behaviour in both cases?

Check the documentation page: