You could duplicate the Atlas_Topbar layout, then apply the dynamic classes to your custom layout and use it on your pages.
You can also just change Atlas_Topbar layout but it’s not recommended because you might lose your changes in a future version update!