JSFiddle - React, Tailwind, and code Playground
HTML
<div id="div1">div do Chrome</div>
<div id="div2">outra div</div>
JavaScript
var isChrome = !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
document.addEventListener('DOMContentLoaded', () => {
if (isChrome) {
document.getElementById('div1').style.display = 'block';
document.getElementById('div2').style.display = 'none';
}
});