Mechanisms, extensions and resources related to Symfony Flash Messages (https://symfony.com/doc/current/controller.html#flash-messages)
Run Composer to install this package in your project:
composer require meritoo/flash-bundle
All parameters have default values. After installation of this bundle, you have to do nothing. If you want to tweak some of parameters, create proper configuration file and enter desired parameters.
Example:
# config/packages/meritoo_flash.yaml
meritoo_flash:
css_classes:
container: middle-container flash-messages
More information you can find here