In Islam, the dead should be buried on their right side facing towards Makkah, but that’s somewhat of a moot point since it should be in a shroud (not a coffin) allowing their bodies to return to the earth (not for spiritual reasons celebrating unity with Mother Earth or for reincarnation like some religions or cultures, more that the body is just a vessel that has served its purpose and should be allowed to decompose back to its source materials).
This coffin-less burial was largely forbidden by western laws and customs so Muslims have typically opted for the “plain pine box” option but there has been a new, secular resurgence of interest in this for ecological reasons and some zoning laws/cemeteries are beginning to allow this in the USA and elsewhere.