Dimethyl ether is an isomer of ethanol.
Isomers have same molecular formula but differ in their structures or in spatial arrangement.
CompoundStructural Molecular formulaEthanol C2H5OH C2H6ODimethyl etherCH3OCH3C2H6O
Both have same molecular formula. Therefore, they are isomers.