Changing the width or height of a Plane Mesh whiles maintaining its Image Texture Proportions

Hello People!

I hope you are well.

How can I use a plane that has an image texture on it as a mask for the texture as shown in the video below?

Meaning, I want to increase or decrease the width or height of a plane mesh whiles maintaining the proportions of the image texture on it.

See the video for reference.