Terminal guidance since ~1995 on higher-end weapons has switched to hybrid inertial + scene matching (various sensor types).
F.ex. the 90s Tomahawk used terrain contour matching to orient itself
For more details see https://apps.dtic.mil/sti/tr/pdf/ADA315439.pdf (US translation of a mid-90s Chinese survey of the guidance space, but it covers the material and is publicly available)
Afaik, most modern systems use infrared target matching for final course correction. (Initially developed to allow anti-shipping missiles to autonomously prioritize targets, but now advanced enough to use in land scenarios as well)