Get some App like e.g. Filmic Pro and play with FPS and shutter speed, read or watch a bit of filming in general, makes fun. The iPhone is simply auto setting a shutter speed(based on the available light condition) that makes the light flicker and get out of sync. The better optics and larger iPhone 12 image sensor is leading to this. The Samsung Phone needs to auto set the shutter speed to very low per default, because it has a smaller sensor and worse optics, else your movies would be too dark. Keep in mind that lower shutter speed also leads to more motion blur.