See for example https://www.elsevier.com/authors/submit-your-paper/sharing-a...:
You can always post your preprint on a preprint server. Additionally, for ArXiv and RePEC you can also immediately update this version with your accepted manuscript. Please note that Cell Press, The Lancet, and some society-owned titles have different preprint policies. Information on these is available on the journal homepage.
[…]
You can post your accepted author manuscript immediately to an institutional repository and make this publicly available after an embargo period has expired. Remember that for gold open access articles, you can post your published journal article and immediately make it publicly available.”