In your code, it seems like you are directly referencing the lookup field "lookupfield__c" in the condition for rendering the apex:outputPanel. However, this won't work as lookup fields are not directly accessible in Visualforce pages.
To display the banner based on the value of the lookup field, you will need to first retrieve the record that the lookup field references and then check the value of the desired field in the referenced record. Here's an example:
<apex:pageBlock>
<apex:pageBlockSection>
<apex:outputPanel rendered="{!object.lookupfield__r.Name == 'abc'}">
<div id="someiddiv"/>
</apex:outputPanel>
</apex:pageBlockSection>
</apex:pageBlock>
Note: Replace object
with the actual name of the object that contains the lookup field. Also replace Name
with the actual name of the field in the referenced object that you want to check.