even though when I build it from unity it works fine, when I try to upload my game to itch.io and have it embed all I get is this:
What do I do to fix this?
There’s absolution no information for us to work from. An image of a black screen communicates nothing to anyone trying to help you as they don’t even know what they are supposed to see. Are you able to open a browser console and see if there are any errors? More often than not, if your HTML game isn’t working in a different environment it’s because there’s a bug in your game’s code.
Hope that helps