Process and eligibility for transit visa in Dubai for Pakistanis (21 hour layover)

I am a Pakistani who’s travelling from Istanbul to Sialkot via flydubai airlines. I have 21-hour layover in Dubai. My journey is as follows:

  • Istanbul — to — Dubai
  • (21 hour layover)
  • Dubai — to — Sialkot

Can I get a transit visa on arrival in Dubai? What’s the cost and procedure?

These (1,2) two questions are related but none of them gives a complete answer to this question.