Is it possible to temporarily remove margin from iTerm2 window?
I think you have to fork and build iterm yourself. Here's a project where somebody did that: https://github.com/jaredculp/iterm2-borderless-padding