Hide the dock in Mission Control and Launchpad? I am really fed up with the Mac OS Dock showing in Mission Control and especially Launchpad. 

Is there any way at all (even if I have to program it myself) to hide it in Mission Control and Launchpad because it gets in the way.

I still want it to show on the desktop and when I have applications open.

Can the dock be hidden only for Mission Control and Launchpad in macOS ?
You could make it very small by pulling on the divider that is located to the right, usually just before the trash (a line) and it will turn in to double arrow when you click on it.