I made this holder for my new Huawei P20 lite in two versions (with and without Spigen liquid air case). I could easily change the parameters to any other dimension if you like to have one for other phones (keep in mind that most phones have rounded cases - so you have to meassure at the right point otherwise the holder will be oversized).
In the small groove on the left side you can glue in a small magnet (5x5x1mm). So you have a place to hold the cable when no phone is connected.