Open X socket forwarding over ssh

I want to run OBS by Snapd from ssh client, but how can I have X socket forwarding over ssh to resolve the error of “Could not connect to any X display”?
Thank you!

This is discussed in X11 Forwarding using SSH