How can I create a mesh plane with more vertices?

I want the mesh to have a finer resolution when scaled up and then deformed by code.

Thank you!

Deform by code, maybe this?