From time to time, the dog was the only pet in the house, and here comes the new member of the family, which now becomes the center of attention.
No wonder some dogs get jealous of the baby and trying to draw attention to themselves, and not become aggressive. Such a situation is generally easier to warn than to decide when it arose. But if this happens, do not think that over time everything will normalize, it is a very risky way.
Instead, seek help from dog handlers who know how to find an approach to problem animals. But if it does not help that it is unlikely that the dog will have to pay parents or friends. Risks are inappropriate here.