There was a discussion about this a few weeks ago, where I discovered KineStop which is an app that does the same on Android. I've only tried it a few times but it has worked every time.
Worth checking first whether your phone already has this natively. My one year old Android by Honor has it built in and exposed in the quick settings (sliding the right down). I know a couple others also have it, but not all of them as discoverable
I use KineStop and it works better than Apple's version on iOS did for me. Hopefully AOSP implements one because you do have to give KineStop rather invasive permissions.
Motion sickness person here. iPhone’s stock one doesn’t work for me. Haven’t tried that on Android. Will see if something similar is available on iOS as third party app.
There's also glasses for this that put a fluid filled tube in your peripheral vision. I want to try it next time I'm on a sailboat and have to do something inside the boat while it's pitching.