sharepoint online – Hide the "View All" link from the list / Web Part in the modern page

I want to prevent users from opening the library / list source. I've created views and I do not want them to have access to the original list / library and switch between views or edit them.

So, how can I hide this link from the modern page?

enter the description of the image here
I can accomplish this in classic mode by embedding CSS in the page, but now with the modern page, there is no scripting Web Part to do that.