Using XAuth and mode-cfg for a Site-to-Site IPSec tunnel

I was wondering if is it possible to use the mode-cfg + xauth for a site-to-site tunnel when only Dynamic IP is available at the remote site?

I know that it is possible to achieve such results using lots of scripts to update IPs, but using mode-cfg would make things much more simple.

Did anyone try such scenario?