You can display the switch button anywhere on the page or post of your website using Gutenberg block with WP Dark Mode very easily. Watch this video to know how to do it.
Video Tutorial #
Go to WordPress dashboard > Pages > Add New. Then set the page title and click on the plus icon where you want to place the dark mode switch. Search for WP Dark Mode and click on “Dark Mode Switch”.
Select your preferred style and click on “Publish”. Your website is now ready to change into dark mode.