what's different about Selected Viewport vs Standalone Game

the game loads differently in standalone, im not sure if this is the issue but it could be something like a ref hasnt loaded yet and is invalid