I was trying my print code on different devices and on my phone the hidden elements still showed up after:
document.getElementById("head").style.display = "none";
and then:
document.print();
So my question is:
is there any way to hide it on phone or is there another print method.
I also tried visibility: hidden;.