Customize svg ionicon via css

I tried to use svg ionicon like this: ion-icon src="/mypath/mysvg.svg"

I’d like to customize svg via css, for example changing fill property, but I can’t.

I found this article which says it’s possible, but it doesn’t work for me

Can anyone help me? Thanks