Change div style inside iframe react

There is no way to access the content of an iframe if the document in the iframe is from a different domain. This is by design.

Read about Cross-origin script API access on MDN: https://developer.mozilla.org/en-US/docs/Web/Security/Same-origin_policy#cross-origin_script_api_access