Adding a cookie banner to my application

Hi all, does anyone know how I can add a cookie banner to my application so that users can either accept or decline cookies? I cannot find any explanation of how to do this online.

Any responses will be much appreciated.

The simplest way is just to use a plugin.