Complianz helps you to determine if your website needs a cookie banner. In this article we further explain what determines if you need a banner.
add_filter( 'cmplz_site_needs_cookiewarning', 'cmplz_force_banner' );
You can easily implement this script by using a MU-plugin. Read more about MU-plugins in this article.