I was trying a tutorial and the mesh suddenly turned like this

Do you have a link to the tutorial you were following? Is it a landscape that you were painting?