You can easily invert colors on an Android even if you don't have the Dark Mode feature on your device. Here's how to do it.
You can invert all the colors on your iPhone using the Accessibility menu in the Settings app, or with an Accessibility Shortcut.