Inside the actor class, assign a category to your UPROPERTY component. Then hide the category in the UCLASS macro.
UCLASS(Abstract, HideCategories = ComponentToHide)
class ATestActor : public AActor
{
GENERATED_BODY()
protected:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = ComponentToHide)
TObjectPtr<class UStaticMeshComponent> TestMeshComp;
};