Divorce And The Bible

divorce and the bible
Divorce and the bible?

How does divorce work in the bible?I’ve heard technically God looks at you as if you’re still married to your last husband/wife.Based on the BIBLE,what does God see it as?

Also(scenario)-Let’s say somebody’s husband/wife dies and they remarry.How does this work out in Heaven?Are they supposed to do this?

Two people are to remain married until one partner dies.

Divorce is only allowed when one partner has sex outside the marriage.

There is no marriage in heaven.

Mat 5:32 But I say unto you, That whosoever shall put away his wife, saving for the cause of fornication, causeth her to commit adultery: and whosoever shall marry her that is divorced committeth adultery.

Luk 20:35 But they which shall be accounted worthy to obtain that world, and the resurrection from the dead, neither marry, nor are given in marriage:
Luk 20:36 Neither can they die any more: for they are equal unto the angels; and are the children of God, being the children of the resurrection.