On desktop

This is more easily done on desktop, as there is enough space to always be showing the order summary.

 

On mobile

Just make sure to show it on each step of your checkout, it doesn’t need to always be visible as they scroll.