Custom code Span styling

Does anyone know if its possible to have a different size Text Icon in mobile view versus desktop? I have given it a new styling name and change the font size in custom code but it still looks like its taking the styles from the desktop.