My internet is lagging when playing cloud gaming. How can I fix this?

Probably last month ago if I can remember, when I was about to play cloud gaming on my Xbox, it's starting to lag which is is very unplayable because of lag spikes. Meaning that I can't play cloud gaming with all that lag. I tried everything to stop that lag but it kept lagging. How can I fix this so I can play cloud gaming?