If I'm understanding the ask, I think niri has this. Workspaces for each output are independent, and switching between them only affects the focused output.
Niri offers a wonderful workflow; it really is an excellent piece of software.
> Each monitor contains an independent set of workspaces arranged vertically. [...] You can move a workspace to a different monitor [...]
> When you disconnect a monitor, its workspaces will automatically move to a different monitor. But, they will also "remember" their original monitor, so when you reconnect it, the workspaces will automatically move back to it.