# Desktop
www.google.com##div[class="g"]:has(a[href*="example.com"])

# Mobile
www.google.com##div[lang="en"]:has(a[href*="example.com"])