Collect the coloured Chaos Emeralds. Gathering the set is what triggers the transformation, in keeping with how Hyper Sonic has always been gated in the series.
In a cannon-style arcade game, that means paying attention to what the emeralds are doing rather than chasing score. They're usually placed so that reaching them requires a deliberate shot sequence, so slow down and read the layout of each stage before firing.
If a run ends without the emeralds, the reset is per-attempt — you start the collection over rather than keeping partial progress.