The values of ionic radii of Li+ = 0.74 A and Mg2+ = 0.72 A respectively. Thus, the lithium ion with +1 charge is only marginally larger than the magnesium ion having a charge of +2.
The Mg atom having a slightly larger size than Li. But the Mg2+ ion is marginally smaller in size than the Li+ ion because of its higher nuclear charge.