In this case, the app-child can not be changed, which means you can only operate the app-parent. My opinion is finding a way to insert the template in app-child, is there a function which like Renderer2.insert(parent, newItem, childRef)
or another solution ?
Look at https://stackblitz.com/edit/insert-template-to-child-component for detail.
app.component.html
<app-parent>
<ng-template #childTemplate>
how to insert this template in app-child
</ng-template>
</app-parent>
parent.component.html
<app-child>
<!-- <ng-template #childTemplate>
this is work, but I need to input the template in app-parent content
</ng-template> -->
</app-child>
child.component.html
<ng-container [ngTemplateOutlet]="childTemplate"></ng-container>