You cannot. Grand Theft Auto 5 was never released on Xbox 360. It launched on Xbox One, PlayStation 4, and PC.
To play GTA Online, you need an Xbox One, PlayStation 4, PC, Xbox Series X/S, or PlayStation 5.