How do I invert colours inside a specific app? The latest Android has an Invert Colours option in quick settings.

Is there any way to turn this on automatically when a specific app is opened? Is there any other way to achieve inversion of colours inside a specific app?
For me Tasker did the job, but you need an additional Tasker plug in for this, called AutoTools.
On my bq android device root wasn't needed to do the job.
I set up a profile to invert the screen when I open specific apps like my newspaper reader.