If you’re looking to make your own portal-based game, here’s a list of stuff that I found to be really helpful:
Incredibly helpful talk by Portal creator
Handling oblique near plane clipping
Brackeys’ video on doing portals
An open-source portal project, but with visual glitches
And the blog post for that project
Someone else doing a similar thing for VR
A good video showing how to prevent clipping of the portal plane when the camera gets close
Most of that info came from the incredibly helpful responses to my dumb question. I personally wouldn’t recommend doing this with stencil buffers because it can break the way Unity renders some effects, but if you still want to do it that way, here’s a couple of relevant posts:
https://unseendiplomacy2.com/2019/04/portal-rendering-part-2-rendering-portals-in-ud2/
https://www.ronja-tutorials.com/2018/08/18/stencil-buffers.html