Not sure I fully understand what you’re trying to achieve, but can you make a check on the value of your custom field? Something like this:
if( $field == 'banner' ) {
// Display banner
}
You can put the code straight into your parent theme’s header-main.php
and it will only execute if the value of $field is equal to ‘banner’, like in the case of your child theme.