We study the spectrum of the one-dimensional Schrödinger operator with a potential, whose periodicity is violated via a local dilation. We obtain conditions under which this violation preserves the essential spectrum of the Schrödinger operator and an infinite number of isolated eigenvalues appear in a gap of the essential spectrum. We show that the considered perturbation of the periodic potential is not relative compact in general.