adjust css property for mobile platform