Hi @ferosekhan ,
You can setup run mode configurations for your component, and fetch that logic in HTL to check whether you would like to have it displayed or not.
eg. for run modes - https://www.techinnovia.com/run-modes/
Hope that helps you!
Regards,
Santosh