Hello, welcome to Microsoft Q&A,
If you want to maintain only one project and this project can be deployed to HoloLens2 and iPad OS, you may follow Billy’s reference about Conditional Compilation feature and adding platform specific codes so that unnecessary codes will be commented when targeting to the other platform.
While if you simply want iPad to have the same view when the project is running on HoloLens 2, MRC is required to stream the views on HoloLens. To learn more about MRC, please refer to https://learn.microsoft.com/en-us/windows/mixed-reality/develop/advanced-concepts/mixed-reality-capture-overview. In the common scenario, it is required to build a separate app that is implemented with Mixed Reality Streaming HTTP requests.
----------
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.