Sometimes there are a lot of colors in Legend. In the Animation it is difficult to related to the colors in the legend and 3D Window. With the dynamic legend it will only highlight./ show the colors shown in 3D Window.
A dynamically updating legend based on the in-use appearance profiles as of the focus time is not currently available. However, there are some settings you can change in 3D View Properties>Legend to make the legend easier to understand
Turn off Autotitle and erase (or edit) the Title text
Ensure Show Start Appearance and Show End Appearance are disabled
In the list at the bottom of 3D View Properties>Legend, uncheck the items you want to hide from the legend (e.g. similar or duplicate items, default and unused items, items irrelevant to the time frame you are reviewing)