Scaling visual elements across devices at runtime