Switching rooms, hollow knight style

Godot version 4.3

How can I make a system where the camera switches for rooms but still follows the player with out having each room as a scene. Kinda of like dew drop dynesty. I am a beginner so explain throughly. Thank you.