We'll create fresh WordPress site with Jetpack Widget Visibility – Query Args installed. You have 20 minutes to test the plugin after that site we'll be deleted.
The Jetpack visibility module is appended to the bottom of all widgets (including 3rd parties). This plugin adds a “Query Args” option so that you can add a key value pair. For example, show a promotional text widget when someone enters a specific search.