Hey Ezequiel, So from my understanding, there are two concepts to “how” you are asking the question.
First Concept, Transposing-
You are asking, how do I take a song in D major, and transpose it up a minor 3rd to F major, which is also D minor. So if you are saying for example, you have a I IV V in D major which would be D major to G major to A major, you want to play the same progression in F major(d minor) which would be F major Bb major C major. Easiest thing to do if you know barre chords would be to shift your fretting hand up 3 frets and play the same thing although I don’t really like that very much. The optimal thing to do would be to learn the theory which I’ve illustrated above and find the best sounding chords for the type of music you are trying to transpose. If it’s rock, then maybe you use the same power chords. If its singer/songwriter, find cool open chord voicings for each chord. Use your ear and don’t settle til you love what you’re playing.
Second concept, Modal Modulation-
If you intend to keep the same Roman numeral values like “I IV V” in D major, but “modulate” to “i iv v”(lower case Roman numerals indicate minor chords, upper case indicate major chords) in D minor, you are now modulating the chord progression thus altering the entire harmonic aspect of the song. “Mixed Modal Modulation” is an amazing tool used to create a great shift in soundscape. My favorite example of this is “The Fool On The Hill” by The Beatles(Paul). I also think that this is a perfect example because you mentioned D major to D minor and that is exactly what this song does. The verse and pre chorus are in D Major and the chorus modulates to D minor giving it one of my all time favorite scene changes.
Lemme know if you meant something completely different but hopefully this at the very least, gives you a fresh perspective