you want to locate a css class present in any ancestor of the component host element up to the document root to use it code example Example: ng-deep ::ng-deep{ // some css }