how did you create the .css file? Could be that there is some weird formatting going on from your editor. It has to be plain text.
Could be this problem: https://forum.obsidian.md/t/enable-or-disable-graph-grid/60040/14
But it actually should still find the snippet. Maybe this has something to do with mobile, sorry I don’t use it much.