Apple introduced dark mode with iOS 13. As long as your iPhone is running iOS or later, you should see the option in your settings.