Unfortunately, that’s not what you described above so I was trying to help you do something different.
I’ve made a demo similar to that in this post and the one below it which has a project link: Project with many screens makes slow thunkable - #4 by tatiang
Maybe that will give you ideas about how to do this.