I have faced this issue and it was due to the way I logged. Everything is fine when I connect directly via SSH:
$ ssh philippe@myserver
$ chromium -v # Works
But I get the “not a snap cgroup” if I use su:
$ ssh anotheruser@myserver
$ sudo su philippe
$ chromium --version # not a snap cgroup
See "not a snap cgroup" error when running Chromium for a comprehensive answer.