Connect for Lemmy has an option for blocking both. The comment still shows, but as “blocked by filter”, which hides the content until clicked on, and can be re-hid.
There’s instance-wide blocking on the Connect for Lemmy app, including the option to block everything or only block the communities of that instance and not users. You can make a private community by not federating with anyone on a private instance.