Dark mode for webview

I am trying to make a app which will load any website ex. google.com into dark mode when button press,By default web page color is light or white background , i want to add a button on the app when i press the button, it load the web page in night or dark mode. Is it possible? or how to do that. I tried simple night mode extension. which dosen’t work. My phone is samsung note 9 .android version 9/ android pie. Please help…