Hold the top of each tire and push it firmly side to side against the frame or fork. Obvious movement means the hub bearings are loose or worn. Some hubs simply need adjusting, but if the bearing surfaces are damaged the honest answer may be a replacement wheel, which changes what the bike is worth…