Hide element using css for a modern page

I have a left navigation item that i want to hide using css. I am using css alternate file to apply the css but in vain. It works fine in classic page but with modern it doesn’t work at all.

I found that there was a modern script editor from spfx sample but did not try it yet to see if it works.