LX is the base model for Hondas in recent times, EX is the next level up. Amenities will change over the years, but in general you get more amenities with the newer models at the same trim levels. 2022 LX's come with android auto and apple car play , whereas 2017 LX's did not. If I remember correctly, you needed to step up to the EX trim level to get android/apple integration for 2017 MY's. In 2017, Honda sensing (their safety suite with emergency braking, lane keeping assist, etc.) was an additional add on, whereas now it comes with all models.
I know that stepping up from LX to EX for my last Accord (a 2016 model) netted me a nicer (but still) fabric interior, larger wheels, heated seats, and android auto, among other things that I'm probably forgetting.