I’d like that feature built into Obsidian too, but as of now there’s a CSS workaround. I have implemented that in the theme that I created: Theme: Dark Arts (Dark Mode Only). So with this, you can click and hold on images to enlarge them.
The css code for it was posted by a user in Meta Post - Common CSS Hacks.