Recent Progress on the Lavrentiev Phenomenon with Applications