Rerender on new route or transition

I’d like to place a dynamic content in the top of the homepage (only).

What is currently the best practice to let it re-render with each page transition to the homepage?

I’d appreciate any link to an existing plugin that uses this..