It’s a bad practice, as anyone with minimum browser skills will remove it with inspect tools.
I did a test with conditionals and privacy settings to see “paid” content and it works fine.