I'm building a Chrome extension that takes a screenshot of the user's active tab. I want to take both desktop and mobile screenshots.
For Desktop screenshot, I use the the chrome.tabCapture
API functions and capture the content of the currently active tab.
How can I take a screenshot for mobile or custom dimensions?