Despite playing on different platforms, Honkai: Star Rail supports cross-platform play, but only for borrowing and lending characters.
In addition, Cross-Progression is supported across all platforms, so you can log in and play the game on PC, iOS, and Android using the same account. The game’s servers save all your data automatically, so you won’t lose any progress if you switch to a different gaming device, as all your data is saved on the servers.