Css code to enlarge the image

Hello
Thank you for this code and give it to me.
I want to zoom in when the mouse hovers over any part of the image. It can be said to act like a magnifying glass …
please guide me.

Or the whole image by img:hover { transform: scale(2) }?
Or display the orignal image size in a separate element on hover.
You could also search the web for that. Like “css magnifier glass image” or somthing with “ionic pitch to zoom”.