For X (Twitter), just go to Settings and Support > Settings and Privacy. Then select Security and account access > Security.
In Dark mode, the background image also changes. Apple's default iOS 18 wallpaper dynamically changes from light to dark as ...