add viewport snippet with retina support