Each carbon in the C2H4 Lewis structure has Sp² hybridization and with two hydrogens it makes the structure look like a triangular planar which is two-dimensional.
Hence Ethene is planar.
Whereas C2H6 has Sp³ hybridization and its geometry is tetrahedral which is 3-dimensional.
Hence C2H6 is non-planar.