Use a subdivided plane. Or search for a grid shader, I've seen some of those. If you want easier control, use a Grid Mesh inside a Geometry Nodes graph.
Didn't watched it, but a video tutorial for a grid shader:
https://youtube.com/watch?v=2qOXWk0rBrM
