It is possible to have the heart and mind focused on the same thing at the same time, but it can take practice to achieve this state of being. The heart and mind are closely connected, but they can also be influenced by different factors and can have different reactions. The mind can be active and easily distracted, while the heart can be more intuitive and emotional.
Meditation and other spiritual practices can help to bring the heart and mind into alignment. Through consistent practice, one can learn to quiet the mind and focus on the present moment, while also cultivating a sense of connection and compassion in the heart. This can help to create a sense of inner harmony and balance, in which the heart and mind work together in a unified way.
Additionally, some practices like yoga, pranayama, and certain forms of martial arts, can help in synchronization of mind, body and heart.
It is worth noting that having the heart and mind perfectly aligned at all times is a difficult and rare achievement and it takes time and patience to develop such a state.